babl: always end strncpy strings with NUL
authorTobias Stoeckmann <tobias@stoeckmann.org>
Fri, 13 Oct 2017 17:25:01 +0000 (19:25 +0200)
committerØyvind Kolås <pippin@gimp.org>
Sat, 14 Oct 2017 18:20:48 +0000 (20:20 +0200)
commit541300d74abd65ed9c729b707b02b2d983e3b670
treefca6fae1cbb5ab5a3effc0b3e77512163e7b9480
parent91f33cd7c5e2465bde04f598156e3b3c6a182f29
babl: always end strncpy strings with NUL

The function strncpy(3) does not guarantee to end the destination string
with NUL character if not enough space was available. This could happen
on systems which allow paths which are longer than 4096 characters.

Signed-off-by: Tobias Stoeckmann <tobias@stoeckmann.org>
babl/babl-cache.c